package me.hgj.jetpackmvvm.demo.app.network

import com.example.mvvmhttpdemo.data.model.bean.ApiResponse
import com.example.mvvmhttpdemo.data.model.bean.BannerResponse
import com.example.mvvmhttpdemo.data.model.bean.SearchResponse
import com.example.mvvmhttpdemo.data.model.bean.UserInfo
import okhttp3.ResponseBody
import retrofit2.Response
import retrofit2.http.*

/**
 * 作者　: hegaojian
 * 时间　: 2019/12/23
 * 描述　: 网络API
 */
interface ApiService {
    /**
     * 获取banner数据
     */
    @GET("banner/json")
    suspend fun getBanner(): ApiResponse<ArrayList<BannerResponse>>

    /**
     * 获取热门搜索数据
     */
    @GET("hotkey/json")
    suspend fun getSearchData(): ApiResponse<ArrayList<SearchResponse>>

}